<?php

namespace app\common\model;

use think\Model;


class FixedCate extends Model
{

    

    

    // 表名
    protected $name = 'fixed_cate';
    
    // 追加属性
    protected $append = [

    ];
    

    
    public function getCoverimageAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['coverimage']) ? $data['coverimage'] : '');
        return get_app_image_url($value);
    }

    public function getBackimageAttr($value, $data)
    {
        $value = $value ? $value : (isset($data['backimage']) ? $data['backimage'] : '');
        return get_app_image_url($value);
    }








}
